home *** CD-ROM | disk | FTP | other *** search
/ Transformers: Revenge of …he Game: Press Kit (USA) / Transformers - Revenge of the Fallen - The Game - Press Kit (USA).bin / Transformers.swf / scripts / fl / video / ConnectClient.as < prev    next >
Text File  |  2009-06-19  |  1KB  |  48 lines

  1. package fl.video
  2. {
  3.    import flash.net.NetConnection;
  4.    
  5.    use namespace flvplayback_internal;
  6.    
  7.    public class ConnectClient
  8.    {
  9.        
  10.       
  11.       public var owner:NCManager;
  12.       
  13.       public var nc:NetConnection;
  14.       
  15.       public var connIndex:uint;
  16.       
  17.       public var pending:Boolean;
  18.       
  19.       public function ConnectClient(param1:NCManager, param2:NetConnection, param3:uint = 0)
  20.       {
  21.          super();
  22.          this.owner = param1;
  23.          this.nc = param2;
  24.          this.connIndex = param3;
  25.          this.pending = false;
  26.       }
  27.       
  28.       public function onBWCheck(... rest) : Number
  29.       {
  30.          return ++owner._payload;
  31.       }
  32.       
  33.       public function close() : void
  34.       {
  35.       }
  36.       
  37.       public function onBWDone(... rest) : void
  38.       {
  39.          var _loc2_:Number = NaN;
  40.          if(rest.length > 0)
  41.          {
  42.             _loc2_ = rest[0];
  43.          }
  44.          owner.onConnected(nc,_loc2_);
  45.       }
  46.    }
  47. }
  48.